<%@ page import="org.skywind.WindSearch.*,org.skywind.WindSearch.interfaces.*,org.skywind.Robot.interfaces.*,org.skywind.Robot.pageRobots.*,org.skywind.Index.HitMappers.*" %>
<%@ page contentType="text/html;charset=utf-8"%>
<%
String key =new String(request.getParameter("key").getBytes("ISO-8859-1"),"gbk");
String host = (String)request.getParameter("host");
int robot = Integer.parseInt((String)request.getParameter("robot"));
int id = Integer.parseInt((String)request.getParameter("id"));
SearchManager sm = (SearchManager)application.getAttribute("system");
OperationHost oh = (OperationHost)sm.getOprationPool().get(host);
Operation oi = ((Operation)oh.getObjectPool().get("Searcher"));
SpiderInterface si = ((SpiderInterface)oi.getRobots().get(robot));
String p = si.getSnapshot("web",id,TextTagParser.PAGE);
p = AbstractMapHits.highlight(key, p, "<span style='background:#ffff00'>", "</span>","<",">");
%>
<div style="border-bottom: 1px #3366dd solid;background-color: #36f;color: white;" >
${talk.webkz }:Host=<%=host %> robot=<%=robot %>  id=<%=id %><br>
</div>
<hr>
<%=p%>